<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <div>
            账号：<input type="text" v-model="user">
        </div>
        <div>
            密码：<input type="text" v-model="pass">
        </div>
        <div>
            性别：<input type="radio" name="gender" v-model="sex"  value="男">男 
                 <input type="radio" name="gender"  v-model="sex" value="女">女
        </div>
        <div>
            爱好： <input type="checkbox" v-model="hobby" name="hobby" value="唱歌">唱歌
                  <input type="checkbox" v-model="hobby" name="hobby" value="跳舞">跳舞
                  <input type="checkbox" v-model="hobby" name="hobby" value="学习">学习
        </div>
        <div>
            职业：<select v-model="job"> 
                    <option>web开发工程师</option> 
                    <option>Java开发工程师</option> 
                    <option>php开发工程师</option> 
                  </select>
        </div>
        <button @click="_click">注册</button>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            user:'',
            pass:'',
            sex:"",
            hobby:[],
            job:''
        },
        methods:{
            _click(e){
            console.log([this.user,this.pass,this.sex,this.hobby,this.job]);
            }
        }
    })
</script>
</html>